<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="shopassistant">店员列表</a></li>
        <li ><a href="shopassistantadd">店员添加</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="">
        分类:
        <select class="form-control" name="category" style="width: 140px;">
            <option value=''>全部</option>
            <option value='0'>未审核</option>
            <option value='1'>已通过</option>
            <option value='2'>未通过</option>

        </select> &nbsp;&nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="" placeholder="请输入关键字...">
        <input type="submit" class="btn btn-primary" value="搜索"/>
    </form>

    <form method="post" class="js-ajax-form" action="">
        <!-- <div class="table-actions">
             <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>
             <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                     data-action="{:url('AdminCategory/toggle',array('display'=>'1'))}" data-subcheck="true">
                 {:lang('DISPLAY')}
             </button>
             <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                     data-action="{:url('AdminCategory/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')}
             </button>
         </div>-->

        <table class="table table-hover table-bordered table-list" id="menus-table">
            <thead>
            <tr>
                <th width="30">ID</th>
                <th width="50">店长名称</th>
                <th width="50">门店</th>
                <th width="50">手机号</th>
                <th width="50">身份证</th>
                <th width="50">职位</th>
                <th width="50">营业凭证</th>
                <th width="50">审核</th>
                <th width="50">时间</th>
                <th width="50">操作</th>
            </tr>
            </thead>
            <tfoot>
            <foreach name="res" item="res">
                <tr>
                    <th width="30">{$res['id']}</th>
                    <th width="50">{$res['managername']}</th>
                    <th width="30">{$res['shopname']}</th>
                    <th width="50">{$res['tel']}</th>
                    <th width="30">{$res['identitycard']}</th>
                    <th width="50">{$res['position']}</th>

                    <th width="30"><img src=http://www.youyi.com/{$res['openimages']}" alt=""></th>

                    <th width="50">
                        <if condition="$res['status']== 1">
                            <span class="label label-danger">未审核</span>
                            <elseif condition="$res['status']== 2 "/>
                            <span class="label label-success">已通过</span>
                            <elseif condition="$res['status']== 3 "/>
                            <span class="label label-warning">未通过</span>
                        </if>
                    </th>
                    <th width="30"><?php echo (date("Y-m-d h:i:s",$res['create_time'])); ?></th>
                    <th width="30">
                        <a class="btn btn-xs btn-danger js-ajax-delete" class="" href="{:url('Drugstore/shopassistantdelete',array('id'=>$res['id']))}">删除</ a>
                        <a class="btn btn-xs btn-primary" href="{:url('Drugstore/shopassistantupdate',array('id'=>$res['id']))}">修改</a>
                    </th>
                </tr>
            </foreach>
            </tfoot>
        </table>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script src="__STATIC__/js/jquery.js"></script>
<script>
    $(function(){
        $(".btn-primary").click(function(){

        })

    })





    $(document).ready(function () {
        Wind.css('treeTable');
        Wind.use('treeTable', function () {
            $("#menus-table").treeTable({
                indent: 20,
                initialState: 'expanded'
            });
        });
    });

</script>
</body>
</html>